import Cart from '@/views/cart.vue'
import Cla from '@/views/cla.vue'
import Detail from '@/views/detail.vue'
import Goods from '@/views/goods.vue'
import Order from '@/views/order.vue'
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/cla', name: 'cla', component: Cla },
    { path: '/cart', name: 'cart', component: Cart },
    { path: '/detail/:goods_id', name: 'detail', component: Detail },
    { path: '/goods/:query', name: 'goods', component: Goods },
    { path: '/order/:orderId', name: 'order', component: Order },
  ],
})

export default router
